package com.juben.svr.domain;

public class ResponseMessage {

    // 登录响应消息类
        private int code;
        private String message;
        private String token;   // 可选的 JWT 令牌
        private User user;     // 用户信息对象

        public ResponseMessage(int code,String message, String token, User user) {
            this.code = code;
            this.message = message;
            this.token = token;
            this.user = user;
        }
        public int getCode() {
            return code;
        }
        public void setCode(int code){
            this.code = code;
        }

        public String getMessage() {
            return message;
        }

        public void setMessage(String message) {
            this.message = message;
        }
        public String getToken() {
            return token;
        }
        public void setToken(String token) {
            this.token = token;
        }
        public User getUser() {
            return user;
        }
        public void setUser(User user) {
            this.user = user;
        }



}
